<template>
    <p v-html="num"></p>
    <button @click="num++">+1</button>
    <button @click="recrease(3)">+3</button>
    <button @click="recrease(5)">+5</button>
</template>

<script setup>
    import { ref } from 'vue'
    const num = ref(0)
    let recrease = (n) =>
    {
        num.value += n
    }
</script>

<style scoped>

</style>